package top.xtcoder.jdcbase.base.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix="nutzdao.config",ignoreInvalidFields=true, ignoreUnknownFields=true)
public class NutzdaoConfig {
    private boolean pbEnable = true;
    private boolean autoCreate = true;
    private String[] entityPackage;

    public boolean isPbEnable() {
        return pbEnable;
    }

    public void setPbEnable(boolean pbEnable) {
        this.pbEnable = pbEnable;
    }

    public boolean isAutoCreate() {
        return autoCreate;
    }

    public void setAutoCreate(boolean autoCreate) {
        this.autoCreate = autoCreate;
    }

    public String[] getEntityPackage() {
        return entityPackage;
    }

    public void setEntityPackage(String[] entityPackage) {
        this.entityPackage = entityPackage;
    }
}
